package br.edu.senai.controller;

import java.io.Serializable;

/**
 * @author william.chenta
 */
public class MedicaoDAO implements Serializable {

    private static final long serialVersionUID = 20120521L;

    private String name;
    private Object value;
    private boolean required;
    private Long id;
    
    public MedicaoDAO(String name, boolean required) {
        this.name = name;
        this.required = required;
    }

    //criei id para passar id do parametro que esta sendo respondido
    public MedicaoDAO(String name, boolean required, Long id) {
        this.name = name;
        this.required = required;
        this.setId(id);
    }

    public MedicaoDAO(String name, Object value, boolean required, Long id) {
        this.name = name;
        this.value = value;
        this.required = required;
        this.setId(id);
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
